hw6 exercise