add nested function example