create controller and model classes