exercise 12. Numeric input, to_i and to_f are key