# Examples | Example | Shows | |---|---| | [Overdraft and the shortfall posting](overdraft.md) | A debit larger than the balance: a negative posting on an account that permits it, `InsufficientFunds` on one that does not | | [Currency exchange](exchange.md) | Deposit, a two-leg cross-asset trade, withdrawal, and books that scope the two flows | | [Retail point of sale](retail.md) | Inventory as assets, a sale that records the cost of goods sold, cash paid in to a bank | | [Escrow](../pending-states.md) | An account that holds a workflow state: pay in, then release or refund, then close the drained account | | [Runnable programs](runnable.md) | The programs in `crates/kuatia/examples/`, taken from source | The exchange and retail chapters are worked cases. The code is real, but each chapter declares its accounts inline instead of inside a program that you can run. The overdraft and runnable chapters include programs that `cargo test` compiles.