setting up models and controllers