Made a HashSet to handle duplicates