Move printf functions to Printer class and create PrintCapable interface