solve exercises 15.7 - 15.9