Don't forget the import statements for StatCollector, otherwise it fails to compile..