small example of iteration through result set.