solve exercises 5.11 - 5.16