setting up the numbers function.

trying to parse the user input as an integer with a while loop.