what does the legislative branch do?