Added code to the Post Class and created a JUnit test for the Post Class