Playing around with finding duplicates before adding them to a list