new to coding, I've written this particular code from scratch, would appreciate inputs! - C#