added DataCollector class.