Building the printer class.