addDictionaryEntry function

Adds an entry to a dictionary