created printTester method