Added Demo4 (reduce)