Some code for learing c#