Added a struct, and a function to review pass by references