solve exercises 3.32 - 3.33