Yeah sorry I've fixed the above code now. I was debugging with a file instead of a hash table.


Spelling mistakes, grammatical errors, and stupid comments are intentional.