structure for controller and model