set up Posts controller, model and view