added plot to show the scatter of data