When a person gains a benefit from a previously unauthorized act of an agent and does not deny the authority to act after learning about it, this constitutes an agency created by: