HW02: finished part 3