demonstrates using a structure to return a group of variables from a function