Replace Model::Gen with automtically generated classes