Generalization for receive a list of terms and not only two