Escaping the poverty trap