Added the Number function and For loop to code.