Example with more complicated transactions and an in-core log