ram - chapter 9

Attempt at chapter 9
Interesting way to tackle this problem, but it needs to scan the files that need changed twice (I think).