Added DetectObject class