Brown sugar in cooker body. Add whole spices, sliced onions, vanaspati. Fry onions until golden brown. Add rice and fry for a few minutes. Add water and salt. Close lid and simmer until rice is cooked.