adding plot for 2nd exercise