add 3 cpp source codes