public boolean add(Ball ball) {
   if (container.add(ball)) {
     capacity += ball.getCapacity();
     return true;
   } else {
     return false;
   }
 }
 public boolean remove(Ball ball) {
   container.remove(ball);
   capacity -= ball.getCapacity();
   return true;
 }