dict-6: added functionality for adding a new word