I have done this in several different ways but i kept getting it wrong. Which is the right way to do this task?