solution of exercise 1-10
solution of exercise 1-11