Implemented CodeGenerator