Correcting printHelloWorld function