Plot added for exer40.