Make calculate() own the stack