solve exercises 8.11 - 8.14