An example program to use EDS cursors