what can the legislature do