Add "SetPath" to examples

This is to fix the things I have mentioned in issue #1