Example code for the demo transient factory tutorial.