Finish print_words method