When creating a principal and surety relation, the basic rules of _______ apply in determining the existence and nature of the relationship as well as the rights and duties of the parties.
1) security law
2) lien law
3) real estate law
4) contract law