created a controller and models