moved number2 creation into functions. saved about 75 lines of code