copy Hw6 from laiy