Massachusetts Lottery officials said Wednesday that Sandeep Singh of Hyannis, who has been working two jobs, plans to buy his family a house and go back to college with his winnings.

Singh had been working at Best Buy and Citizens Bank. His winning ticket was one of four Quick Picks his sister had picked up for him.

He decided to take the one-time lump sum payment of about $23 million, about $16 million after taxes.

Lottery officials said he came to Lottery headquarters outside Boston late Wednesday afternoon with his mother, sister and niece. The winning ticket was purchased at the AM/PM convenience store in Hyannis.

Singh said he was heartbroken when his girlfriend left him, but is "suddenly starting to get over it."

"She broke up with me. But right now, I'm not really worried about it. I was heartbroken at first, but now I am getting over it," he said.

The other winning Mega Millions jackpot ticket from Tuesday's draw was sold in Fresno, Calif.