maps with bits and bits with maps running with ruby