exercises 5.2 and 3