Creating the controllers and models