Thank you for your contribution Christian Foucher! Actually, yes, given all the different types in embedded and the singleton pattern, setting up function parameters can take a while to digestive. This is why I try to avoid them in beginner tutorials. Maybe it's a topic for a separate blog post.
I revised your refactor and yes, I am printing the value regardless of the update. I will update the post and repo to incorporate this as an optimization.