loop demo

Here's the source.