edit Tree.java