My submission

I hope what I have written clearly explains how these functions work.