Print final results to console

Added console.log function to concatenate and print the final results
to the console