Added base class to post model