2 c Dry pinto beans 1 lg Sweet onion -- chopped 4 c Water 2 Garlic cloves -- minced 1 cn (29 oz) tomatoes with juice 1 cn (4 oz) chopped green chiles