Context and novelty in an integrated theory of intelligence