C# Classes inheritance example