adding ping.c ping.h