Improved example featuring # of rows, diagnostics, proper string handling