sample app from Ruby on Rails Tutorial, Chapter 3