solve exercises 7.35 - 7.36