A base Memory class has been implemented. Each object must inherit the memory class.