Application 2 from the ruby on rails tutorial