Adding values in array of objects together