made new file solverFunctions.c