solve exercises 14.6 - 14.8