put uniq method inside class