Making magic: Accounting and card tricks