solve exercises 19.14 - 19.16