Simple code generation (model)