Added solution for problem 6. Also updated gitignore to ignore vim files