adding Collector class