For chapter 2 of RailsTutorial book