attempting a rewrite

As more and more tweaks were needed, the original hack-a-funch of
functions together got harder and harder to bend.

I’m reading Avdi Grim’s “Confident Ruby” now, and his approach came in
pretty timely. Seems promosing so far.