solved exercise 28 in chapter3