Create PrintResult function