added Post class and test