Initial version of memory class