Prep all the vegetables before starting.
Heat some oil in a large skillet and fry the squash for several minutes until it takes on some color on all sides.
Add the beans and about 2 cups of water (I filled the can the beans came in)
Season to taste and reduce the heat to a simmer, add more water as needed to prevent the pan from drying out. Cook until the squash is tender, about 20 minutes.
While the beans and squash are cooking make the sofrito by heating some oil in a small skillet, then adding the onions, peppers.garlic and oregano. Saute for several minutes until the vegetables have softened. Season with salt and pepper.
Remove from the heat and stir in the cilantro. Allow it to wilt in the heat of the pan.
Stir the sofrito into the beans and squash, taste and adjust the seasonings, then serve as desired..