Integration as a limit of a summation