Working through examples from Shiffman's The Nature of Code