added function example