Created clas structure for Post types, should be easier to maintain.