Create Method for Tree Traversal