add print the function with System.out.print