sample for for rubyonrails tutorial - chap 2