Link error in exercise 3.1