add examples for C++,Java,gnuplot