constructed to show only values with type scalar
created a loop to echo all the values within a scalar