Chapter7-10 examples