solve exercises 6.11 - 6.14