https://virtualsoftbook.com/the-spin-ledger/