Used an array of hashes. Each element of the hash corresponds to a categorical variable. The keys for a categorical variable(array index), are the different values of the categorical variable and the value of the key is the impression count