Adding code and png for plot 4