A Simple Model of Language and Cognition