adding pass by reference exercise