add Cube generated code.