Brazil makes a smart move to attract and retain foreign investment