The law of effect states that

effect is strong if the effect is long lasting

Response generalize across similar surroundings

close temporal contiguity is the key characteristic in forming an association between stimulus and respons

A response will be strengthened if the organism is rewarded for that response