Making the code work

Hi. I've been trying to get a working version of the code you've created.
Still needs help.