add inst.c
change to cpp