Programming Exercise 3 - e^x