add library file baselib.c