This is an exercise in Ruby on Rails