Translating The Nature of Code chapter 9 to Ruby (http://natureofcode.com/book/chapter-9-the-evolution-of-code/)