Refactoring Printer as a Strategy