added code for e^x