added code and data for scatterplot graph