Beginning of exercise 4