adding ch2 exercise 88