You should try it yourself. This forum is not your compiler.
If it works - great! Move on to the next step you want to solve.
If it doesn't work - try looking at the code and understanding why it does what it does, and what needs to be different in order for it to work as you want it to. If you are still stuck after spending time on trying to solve the problem yourself, post with the current code + description of expected behavior + description of current/actual behavior.
Note that this methodology applies to more than just this specific issue.