more work on hw6