updated Array#reduce exampels