Created a BaseModel and extended it to Post and User