import java.awt.*;

class Producer extends Thread {
  private Soup soup;
  private String alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";

  public Producer(Soup s) {
	soup = s;
  }

  public void run() {
    char c;
    for (int i = 0; i < 10; i++) {
      c = alphabet.charAt((int)(Math.random() * 26));
      soup.add(c);
      System.out.println("Added " + c + " to the soup.");
//      try {
//        sleep((int)(Math.random() * 100));
//      } catch (InterruptedException e) { }
    }
  }
}


