What exercise it this? What errors are you getting? What have you tried?
We can't give you code, but we can help you figure out your problem. I already see the issues in your code, but answer my questions above so I can help and explain everything for you.