exercises 2.36 and part of 2.37