solve exercises 13.6 - 13.10