Controller. Function with parametheres