Homework at c#