completed get_words method
completed find_word_end_node method