Made a memory abstraction, with 2 concrete implementations: 'Ram' and 'Rom', instead of having one class that tries to handle both.