chp. 7 + code