gave project a main method
tail recursion to calculate exponential