solve exercises 13.25 - 13.27