Now heat the oil in a pan on medium heat.Once hot add whole spices.Saute for a minute then add cumin seeds.Then add chopped onions. Cook till onions are translucent and soft Add ginger and garlic paste and chopped green chilli and mix. Saute Add pureed tomato mix well.Let it simmer and continue cooking. Cook till almost all the moisture is evaporated and oil starts seprate from the sides.Then add salt, turmeric powder, red chilli powder, cumin powder and coriander powder mix well and cook for a min.