C# Sharp Programming Exercises, Solution