committing plot and code for Q4