Generalize the data structure