solve exercises 10.11 - 10.12