changed type parameters of ExampleGatherer