adding the sample code to append rows to a table.