just following the Ruby on Rails Tutorial: http://ruby.railstutorial.org/ruby-on-rails-tutorial-book#sec-github