sample app tutorial from ruby.railstutorial.org