Added gitignore and modified Factory.java