Create CodeFactory.java