add dict() function to look up a word