First rough implementation of memory backend