solved exercises 9 in chapter6
solved exercises 10 in chapter6