Remove repeats in task3