Samples updated to use RecordRepository