Adding the character tree class.