Added factorial math to calculator