Modules

converts variables to scalars holfding frequencys of keys in values