Implemented integrand function