For a communication to be protected by the attorney-client privilege, which of the following elements must be satisfied?