translation of the classic code from the David Gelghman / Bunny Laden book