This is my homework in Csharp course