peek: function(){
        try {
            return this.stack[this.stack.length-1];
        } catch (e){
            return undefined;