added calc.sml