A general theory of learning and conditioning: Part I