added code and png file for plot 3