app number 2 from the rails tutorial