My code in C#