Create FactorTree.java