Beans with tomatoes and onions