Implement the cache simulator.
Learning Exceptional Control Flow.