C# code from C# Basics