Setting up the tree