passed sum_arrays method