An exercise in reading code