Implemented an abstract class which all detectors will inherit