Just wrote a 51-line block comment to explain a 29-line piece of code…