A Stimulus/Behavior based framework