added my own function

added my own function