solve exercises 16.2 - 16.4