completed exercises 40 to 42