CS369 Rails Chapter 2 Homework 2