added system.out.print() snippet