peak(): T {
        if (this.data.length == 0) throw "Can not peak an empty stack.";
        return this.data[this.data.length - 1];
    }