did i code right? - C#