I have been stuck on this problem for like two days. Completely baffled as to why I was getting an incorrect value... I was logging the incrementing value, and nt the sum...