The Architecture of Mental Models