Adds the aveerageForEachCustom, largestNumberForEachCustom and longestStringForEachCustom functions.