Realism, anarchy and cooperation