Added functions.cpp to mix