Coarsely dice onion and pepper then saute in a pan until soft. Add tomatoes and beans, simmering on a low heat for 15 mins. Slice the tofu into chunks and add to the mix. Simmer for a further 15 mins and serve.