added code and png file for plot 4