Found a simple example of how to call a function with changeable parameters