adding Java and C# example code