solve exercises 9.9 - 9.13