public void Detach(IMonitorObserver observer)
 {
     _monitorObservers.Remove(observer);
     Console.WriteLine("Subject: Detached an observer.");
 }
 public void Attach(IMonitorObserver observer)
 {
     Console.WriteLine("Subject: Attached an observer.");
     _monitorObservers.Add(observer);
 }