Bonus 3: prevent duplicated entries