implemented integral #13