in greeter class, initwithname added and used in the AS