CPPstudy:  add some example code