started working on memory.h interface