Create controller and model