Heat oil in a pan. Add mustard seeds. When it starts to pop add urad dhal & red chilies and fry or few minutes. Add the chopped onions and fry until the onions become translucent. Then add the beans and salt and mix well. Add little water. Cover the pan. Lower the heat and cook until the beans is cooked. Add the grated coconut. Stir once and remove from heat.