C++ world classes for tree