HashPrinter class
Refactor