2nd exercise from the rails tutorial