fixed cppdynamic example