add reduce example