Cut the beef and onion into bite-sized pieces.
Heat some cooking oil in a pan and stir-fry the beef and onion.
Season with soy sauce, sugar, and pepper.
Beat the eggs, pour them into the pan, and cook gently over low heat.
Spoon the cooked beef, onion, and egg mixture over rice.