added attributes to Post.rb