Now, we define the function