solve exercises 4.35 - 4.37