Defining and importing the user-defined functions