Example in #1971

Basic function used in example #1971.