solved exercise 26 in chapter3