added final functions to my_memory.h