Created a rule that averages elements of a list.