authored gibbsC.cpp