following this: http://ruby.railstutorial.org/chapters/beginning#top