copy the whole exercise 3