C# coding assignment dealing with OOP and file output