Add example program that uses enumerator

This short sample application should demonstrate how to use enumerator
in real world situations.