Storing all of the calculations in a string to be printed out by the console