started writing memorycontainer.c