solve exercises 15.5 - 15.6