First part of my homework which is included in CSharp Basic course