I have changed from multiple arrays to hold data values to a single array of data structures. Display function is working.