Soak the beans in plenty of water overnight.
Drain the beans and place them in a pan with fresh water, cook on medium heat for an hour.
Drain the beans again, get rid of the cooking liquid, and set them aside to use later.
Preheat the oven to 180 °C (356° F).
Place a heavy-based pan or dutch oven on medium to high heat.
When hot, add the olive oil and brown the meat.
Add onion and garlic, saute until translucent, and add the tomatoes.
Stir in the tomato paste, chili (optional), and pepper paste (optional, add extra tomato paste instead).
Add the pre-cooked beans along with salt, pepper, and cumin.
Pour in the beef stock or chicken stock and stir well. Make sure there is enough liquid to cover the beans.
Cover the pan with the lid and cook in the oven for 1 hour or until the meat and beans are soft. Make sure to check every 20 to 30 minutes and give it a stir.