Ah, I see. You are looking at the solutions page and trying to copy the solutions there while also using the starter code.
But, these user provided solutions came from a slightly different version of the challenge, so it is hard to copy those answers.
I recommend not copying the answers. Copying cripples learning.
You should instead solve the problem without copying the answers and then look at the user provided solutions to see alternative ways to approach this problem.
The given starter code is completely valid for this challenge. I don’t see anything to ‘fix’ here.