Code used in a talk I gave at work