alternative version of helloWorld without for loop and mouse interaction