Moved the sum demo and future value demo portion of the code into their own functions