How can I accomplish the addition of all the values ​​in a list?