Use structured bingings to return the value of multiple variables
instead of passing the variables via pointer to the fucntion. this way we initialize on the declaration, and is simpler to read the code.