package net.afterlifelochie.fontbox.document;

import java.util.ArrayList;

public class Document {

	public ArrayList<Element> elements;

	public Document() {
		this.elements = new ArrayList<Element>();
	}

}

@@ -213,11 +213,406 @@
 %0D%0A%09%7D%0D%0A%0D%0A
+%09public void push(Element element) %7B%0D%0A%09%09if (elements.contains(element))%0D%0A%09%09%09throw new IllegalArgumentException(%22Element already exists in tree!%22);%0D%0A%09%09elements.add(element);%0D%0A%09%7D%0D%0A%0D%0A%09public Element pop() %7B%0D%0A%09%09return elements.remove(elements.size() - 1);%0D%0A%09%7D%0D%0A%0D%0A%09public Element head() %7B%0D%0A%09%09return elements.get(0);%0D%0A%09%7D%0D%0A%0D%0A%09public Element tail() %7B%0D%0A%09%09return elements.get(elements.size() - 1);%0D%0A%09%7D%0D%0A%0D%0A
 %7D%0D%0A

Add Document storage methods.