HW6, part 4