```
def __init__(self, nums):
"""
initialize your data structure here.
:type nums: List[int]
"""
self.nums = nums
self.sumList = []
sum = 0
for index in range(len(nums)):
sum += nums[index]
(self.sumList).append(sum)
def sumRange(self, i, j):
"""
sum of elements nums[i..j], inclusive.
:type i: int
:type j: int
:rtype: int
"""
return self.sumList[j] - self.sumList[i] + self.nums[i]
```