add defined function example