Delegates example using C#