Model, controller and resource generation