Update g_library.cpp