Updated calc.c