Specifying the Post class and implementing the Post class.