Greatly improved how post types are created by adding a class that can be extended upon