added a exponential function to lab 7