Adding my function code