Generated scope model and controller.