mirnor changes in examples/printer.cpp and printer_temp.cpp