fix reduce example 2 (add initial value)