Added a very basic memory abstraction