created a post model and controller