Members of the Senate are indirectly elected through a complex formula for a 3-year term; 26 are elected by the 13 state assemblies, 2 representing the federal territory of Kuala Lumpur, 1 each from the federal territories of Labuan and Putrajaya, and 40 are appointed by the king. Besides the federal parliament, each state has a unicameral state legislative chamber.