Transaction Analysis using the Accounting Equation