First draft of exercise 3