An example used in Intro to Ruby on Rails