What was the function of the Legislative Branch?