create a procedure with the TOTAL code in the console.log