Wrote RemoveDuplicates()