Created a base class for objectCollectors