DynamicModelCodeGenerator partially done