Adding cpp and scala example code