solve exercises 16.23 - 16.24