added print class to all_words