Working mucalc.cpp 1.0 version