added ch2_examp8 from reading