Created BaseModel and extended to post and user