problem 3 solved

sadly not my code.  But, I’ve spent the time to understand why it
works, and how.