divide the controller and model into multiple files