HW4 part 6