Added clause to evaluate the sum of the elements of a list