solve exercises 8.8 - 8.10