Put half of the butter and half of the finely chopped onion in a saucepan, and when it starts to brown, add the rice and sauté well, add a liter of water, salt and pepper, and let it cook for twenty minutes.
With the other half of the butter, fry the rest of the onion and the diced ham.
Add the tomato puree, salt, pepper and a little sugar.
The rice is molded in the shape of a bagel, the refried sauce is poured into the center and the fried eggs around it.