The correct way to do this exercise