Completed Ch9_Ex2 homework