A Cognitive Theory of the Firm