Following and applying the examples in the "Learn Rails" book