added GateExample.cs