extract Printer class