https://dev.meminc.org/six-frogs-over-tango-part-3/