committing plot and code for Q5