added examples for CPP