Add base tree class.