Finished chp 5.6 exercises