insert curve in exercise 2