MemoryTester homework. Not tested