Example code from Chapter 1 of the Code Rails workbook