sample example of an example of a function return by value