added Post class and spec
using the Post class consistently