Could you put this code below the comments? I'd like to keep those at the top of each file so others can reference.

Also, please add some comments for others. The goal is that the solutions provide explanations, not just answers to copy and paste. Thanks!