Update to reflect the change from $ to _ and to include the reduce function