Added printer sample code