chapter 3 sample app from Ruby on Rails tutorial