some example code for test cpp