Checking for Duplicates - DONE and TESTED