solve exercises 16.10 - 16.11