Merge Loader and ExampleCollector classes