chap1 C#