Changed Sum to Foreach(Method)