What system of government was constitution based on