"added the sample code for the print functionality"