created properties and a method to alert a say hello message