C# High Quality Code homework 2