added mylib.c file