added travel method to tree