Working through the examples in the book The Nature of Code by Daniel Shiffman