public void Add(Command cmd)
 {
     commands.Add(cmd);
 }
 public bool Contains(Command cmd)
 {
     return commands.Contains(cmd);
 }
 public bool Remove(Command cmd)
 {
     return commands.Remove(cmd);
 }