Interesting problem, and a fascinating solution approach!