added calculate.c