Classes of models and sets of sentences with the intersection property