Updated CodeText to inherit from a different base class.