How To Integrate A Function Within A Function