implement by reference identifier in function definition
update example 6 to show by reference function