added method get_next_word which gets the next word from the sentence