public int addition() {
        if (stack.stackLength() > 1) {
            int firstNum = stack.top();
            stack.pop();
            int secondNum = stack.top();
            stack.pop();
            return firstNum + secondNum;
        } else {
            return error;
        }
    }