soleved exercise 6 in chapter4