Function as a parameter is added as an example