HW5 part6 done