application 3 from the rails book