chapter 2 from the Ruby on Rails Tutorial!