Implemented ctor, dtor for CodeBlock.