added Memory_Inference