How are officials elected to the legislature