HW4 part 2 done