refactor printable method in dictionary.rb -- sweet