exercise 1 - error if not numeric