solve exercises 14.21 - 14.23