changed filename from .c to .cpp