exercise 3.5 class 6