add loop around array to display content of array as well as type of data object