adding a controller, model, and views for posts controller