add has_word and find_word, also remove_word pseudocode