Added gitignore file and changed java file