fleshed out driver code; properly inherited member variables from TreeIterator class