adding exercises from 7th chapter