plot for exercise 3.2