renamed unique and duplicates, added factorion example