Piece of code for implementing the code generation