To cook the egg, it is better to use a non-stick frying pan, if it's not available then ordinary frying pan is just fine.
Make sure that the oil or butter is hot before putting the egg.
Once the oil is hot sprinkle some salt in the oil ( just enough to give flavor to the egg) crack the egg into the pan.
Cook the egg over low heat, then remove the egg when it is already cooked the way you like it.
Serve it with a sunny smile :)