Updated for Rust 0.13

Used indexing instead of get()