a ledger is used to maintain accounts