adding plots for exercise 4