Completed question 1 and 2, added code that calls each function with real numbers