solve exercises 14.24 - 14.26