calculate the sum of an array fx #1