Building out the data structure