added a loop and a new func for a greeting