Affinity Set and Its Applications