Added the number function and made some changes to code structure in preparation of coding the rest