C# Object Oriented Sample Code