complete adjacent_words method