TypeError: Cannot read properties of undefined (reading '0') (line 10, file "Code")