Heat oil in a pan
Take a dry pan, the size of which should be according to the quantity of rice you plan to cook. Ideally, a medium sized pan will do the trick. Place it on a stove and heat it for a couple of minutes on medium flame. Now, add some oil to it and increase the heat under the pan.
Add uncooked rice to the pan and stir it properly, so that every grain gets coated with oil. In order to get better results, always rest rice in cold water for at least half an hour before you start cooking.
Once the rice gets coated with oil, start adding seasonings to the pan and make sure that your continue stirring with one hand.
Add chopped onions and tomatoes
Use a sharp knife to chop onions and tomatoes. Now, add them to the pan and cook for some time.
Finally, pour some cold water over rice and cook for 30 minutes. Make sure that the pan is covered properly so that the heat stays inside.