Made exponential sum a Function