Complete hw6.