The Sam’s wholesale candy and snacks brand is turning a profit, thanks to its recent merger with Wal-Mart.

Sam’s is the third of Wal-mart’s grocery chain to merge in recent years, joining the two companies that have grown up together in the United States.

The combined company will create an e-commerce juggernaut that’s expected to be worth $4 billion, according to analysts polled by FactSet.

Wal-marts shares rose 2.4 percent to $74.90 in midday trading, and Sam’s rose 2 percent to 76 cents.