followed http://ruby.railstutorial.org/ sample_app