HW 07b takes care of the duplicate