finalized hw6