modified hw6