Refactored sayHello() as a self calling function