Advanced Hands-on Rust B2.0: Query/suggestion regarding the code development in Chapter 5