Finely chop the onion and carrot.
Beat the eggs and set aside.
Heat cooking oil in a pan and stir-fry the onion and carrot.
Add rice and stir-fry evenly.
Add the eggs and stir-fry with the rice.
Add ketchup and mix well while stir-frying.
Season with salt and pepper to taste.
Transfer the finished fried rice to a bowl.