added labels and found range of the data