Create flaresFunctions.cpp