public void run() {

      for (int i = 0; i < 10; i++) {
        c.decrement();
        try {
          Thread.sleep(100);
        } catch (InterruptedException ie) {
          // nothing to do
        }
      }
    }
 @Override
 public void run() {
   counter.decrement();
 }