adding code to cpp subproject