adding sample function in script file