complete the greaterNum funcion