I did that before. But i forget the actual application.
The answer for your question is "Indirect" function.