Initial inmemory version in ruby