http://ruby.railstutorial.org/ tutorial as a class exercise