solve exercises 18.08 - 18.10