Working C# Example