Doubler function passing parameters by reference.