Finished chpt 5.2