Your code Is told about each operation in turn Simulates the paging algorithm No need to actually read/write pages to/from disk/memory Store which page is in each frame And which frames are dirty Counts number of cache hits cache misses without write-back cache misses with write-back