Updated functions.c++