role and duties of a lawyer