Ruby exercises from Chapter 3 of Michael Hartl's Rails 4 Tutorial