Example code for the demo factory tutorial.