Working with simple inheritance in C#