what does the attorney general do