Behaviorism, finite automata, and stimulus response theory