public void push(Element element) {
        if (reversed) {
            reverse();
        }
        if (firstElement != null) {
            Element tmp = firstElement;
            while (tmp.getNextElement() != null) {
                tmp = tmp.getNextElement();
            }
            tmp.setNextElement(element);
        } else {
            firstElement = element;
        }
    }