.reduce takes optional init value