Introduce SharedMemory class