What functions and what organisation for the state in the territories?