Create Detector.cs