get_word function completely finished.