Affinity spaces