Completed plot 3 and png file output
Minor modification