script for making plot 2 and the plot