add sample cpp file