Create libfunctions.cpp