solve exercises 11.6 - 11.7