What is the main function of the legislative branch of state and federal government?

to create new laws
to interpret the laws
to enforce the laws
to obey all of the laws