Used function with arguments in each "numberPressed" function to cut back on amount of code and make it easy to implement a change by changing it in one function rather than having to change it in each number.