This tutorial is taken from http://ruby.railstutorial.org/ruby-on-rails-tutorial-book