create plot for the 3rd question