solve exercises 4.43 - 4.47