Add example for print with function