created the model view and controller