Now able to evaluate the tree structure