solution of exercise 3