I don't know how to give the function as a parameter..