modified:   local_calc.cpp (WIP)