tweaks to C# example