generating controller and model