pass by reference exercise