following chapter two of http://ruby.railstutorial.org/chapters/a-demo-app?version=4.0#top