Based on Ruby on Rails tutorial from Michael Hartl using Ruby 2.0.0 and Rails 4.0.0