solve exercises 14.28 - 14.29