some sample practise in c#