Setup Main controller and model