Singapore is a parliamentary republic based on the Westminster system. The Constitution of Singapore is the supreme law of the country, establishing the structure and responsibility of government. The president is head of state and exercises executive power on the advice of her ministers. The prime minister is head of government and is appointed by the president as the person most likely to command the confidence of a majority of Parliament. Cabinet is chosen by the prime minister and formally appointed by the president.