ex6.10 (scatterplot)