Write a function (def sumOfElements(lst)) that takes a list of numbers and returns the sum of all elements in the list.