plot for 1st exercise