adding exercise 31