What have you tried? Those few lines of code do not show enough to get an idea of what is right or wrong.

What part are you stuck on? I do not understand what you are asking for help with.