Updated examples

I updated the examples so they should work, but I haven't fully tested
them.