Programming practice using C#