Updated examples to latest rust