Cut tomatoes into cubes. (If desired, you can remove the skin from them). Add to the beans, add salt, stir and simmer under a closed lid for about 30-40 minutes (the beans should become soft).
Periodically mix the beans with tomatoes and, if there is no liquid left in the pan, then add a little boiling water (usually tomato juice is enough to cook the beans).