The algebra of relatives