modified Hw6