class CircularStack implements Iterable<E> {

  public void push(final E element) {
    this.elements.add(element);
    if (this.elements.size() > this.limit) {
      this.elements.remove(0);
    }
  }

  public  CircularStack(final int limit);

}