Example: Replace 'TruePath' function

In a fit of relicensing (commit 9efa55e), I accidentally deleted
important code from the example program.  This commit restores that
code.