added cpp example programs