Integration of functions of two variables