Adding the posts controller and model