Reduce object creation example