Added the function that will total all of the values entered by the user