updated version hw6