Created model and controller.