the ledger

https://gist.github.com/mjallday/1f3b686d7ec331efb947