Add values using FOREACH loop