How Brazil beats poverty trap