solve exercises 10.13 - 10.14