What is the main purpose of state legislatures?

What is the main purpose of state legislatures?
A. to provide legislative support for Congress
B. to challenge the legality of federal laws
C. to control the legislation of local governments
D. to make and pass laws at the state level
E. to provide financial support for the federal government