refactored the code for 1b
changed web xml
added a gitignore file