added class Printer with a test