adding function with comments

adding function with comments