Work on MemoryRepository. WIP.