Update Factory.java