Writing the routes, controllers and views