first function

first function written