Solutions to simple questions in Rust