adding delegates example