tutorial application from http://ruby.railstutorial.org/