Create checkConnect.c