The duty of an agent of necessary to a principle is based on?