chapter 11 exercise 4 semi-done
exercises 2 and 4 chapter 11 improved