What are the primary responsibilities of a lawyer?