The relationship between an agent and a principal is a contractual one. Therefore, rights and duties of the agent and principal are in accordance with the agency contract. To establish an agency, there must be consent of both the principal and the agent, although such consent may be implied rather than expressed.