Create NodeFactory.java