If you would be so kind, please take a look at
<http://www.dlugosz.com/Perl6/web/med-loop.html>. I spent a couple days
on this, and besides needing it checked for correctness, found a few
issues as well as more food for thought.
--John
P.S. contains some humor.