Modify the example to print info when retrieving records.