adding printTree.