Created a method that asks the user to input the total sum