main memory #11 and tests
finished main memory #11