More complex demo to illustrate some issues with the code.