solve exercises 17.10 - 17.11