Make function.cpp really work