Adding Updated code of call by Reference