If a person's duties include defending clients in court and providing legal advice, what is their job title?