solve exercises 7.23  - 7.26