added function example.