adding system.c file