During its two year recession, crime rates shot through the roof in Brazil. Many unemployed workers joined the ranks of organised crime. The country now has the world's third largest prison population, behind China and the US only.
In the city of Ananideua, in the North of Brazil, a prison is turning inmates into entrepreneurs. They fully own a cooperative called Coostafe that is run from inside prison. On weekends some inmates are allowed to leave jail and sell their products. The entire legal structure of the business and all profits belong to the inmates.
Some women have left prison already and are still working with the cooperative. Without it, they would hardly stand a chance in the labour market - where 13 million are unemployed.
The BBC's South America Business Correspondent reports from Ananindeua, in the state of Para.