added word_list function