Add an example.  Closes #1957 and supersedes #1959.