Added integration function
Added function integration