refactoring
.c -> .cpp