Updated the post model