Creating a model for generating code