homework 9 for 571