Rust: Problem 7