function

writing the function