Refactored Code
.gitignore is now working