static void Main()
        {
            EngineManagementSystem ems = new EngineManagementSystem();

            Ignition    ignition    = new Ignition(ems);
            Gearbox     gearbox     = new Gearbox(ems);
            Accelerator accelerator = new Accelerator(ems);
            Brake       brake       = new Brake(ems);

            ignition.Start();
            accelerator.AccelerateToSpeed(30);
            gearbox.Gear = Gear.Fourth;
            brake.Apply();

            Console.Read();
        }
 public virtual void RegisterBrake(Brake brake)
 {
     this.brake = brake;
 }
 public virtual void RegisterBrake(Brake brake)
 {
     this.brake = brake;
 }