main.cpp uses function.h now