Updated example to latest Rust