created foreach loop to show data type
updated to show which are scalars
updated to echo each value