Added the integral function
Written first draft of integral function and first draft of derivative function