Create Factory.java