replaced ListSet with Ensemble (generic Set)