completed word_count_dict, print_words and print_top methods