Kristen, a 3-year-old, enjoys taking baths and is always willing to get into the bathtub. Kristen hates to have her fingernails clipped and will run and hide if she sees her mother or father with the nail clippers. Edward Thorndike would explain her behaviors using the law of: