Use 2 (not 4) spaces for indentation.<br>Name reduce block arguments |a, e| (accumulator, element).<br>Space between { and | missing.<br>Space missing inside }.