allows the history record
shows with a sample how to use the history records
small refactoring
enhacement the sample