Update function.cpp