add Post model
fix rubocop errors