initial version of f1.cpp