created a graphing function -- which displays and creates png
submitting plot 2