Chapter 3 exercises in Rails Tutorial