Finished recFun.cpp