build code to generate the code that is given in the task description