crteating a function