hw9 from jz1584