Here's a version with the output and a reformated output.