Tutorial from http://guides.rubyonrails.org/generators.html