Nevertheless, those afflicted with an enquiring turn of mind have often wondered whether there are rules of magic. There are more than five hundred known spells to secure the love of another person, and they range from messing around with fern seed at midnight to doing something rather unpleasant with a rhino horn at an unspecified time, but probably not just after a meal. Was it possible (the enquir ing minds enquired) that an analysis of all these spells might reveal some small powerful common denominator, some meta-spell, some simple little equation which would achieve the required end far more simply, and incidentally come as a great relief to all rhinos?

To answer such questions Hex had been built, although Ponder Stibbons was a bit uneasy about the word 'built' in this context. He and a few keen students had put it together, certainly, but... well... sometimes he thought bits of it, strange though this sounded, just turned up.

For example, he was pretty sure no-one had designed the Phase of the Moon Generator, but there it was, clearly a part of the whole thing. They had built the Unreal Time Clock, although no-one seemed to have a very clear idea how it worked.

What he suspected they were dealing with was a specialized case of formative causation, always a risk in a place like Unseen University, where reality was stretched so thin and therefore blown by so many strange breezes. If that was so, then they weren't exactly designing something. They were just putting physical clothes on an idea that was already there, a shadow of something that had been waiting to exist.

He'd explained at length to the Faculty that Hex didn' think. It was obvious that it couldn't think. Part of it was clockwork. A lot of it was a giant ant farm (the interface, where the ants rode up and down on a little paternoster that turned a significant cogwheel was a little masterpiece, he thought) and the intricately controlled rushing of the ants through their maze of glass tubing was the most important part of the whole thing.

But a lot of it had just... accumulated, like the aquarium and wind chimes which now seemed to be essential. A mouse had built a nest in the middle of it all and had been allowed to become a fixture, since the thing stopped working when they took it out. Nothing in that assemblage could possibly think, except in fairly limited ways about cheese or sugar, Nevertheless... in the middle of the night, when Hex was working hard, and the tubes rustled with the toiling ants, and things suddenly went 'clonk' for no obvious reason, and the aquarium had been lowered on its davits so that the operator would have some-thing to watch during the long hours ....evertheless, then a man might begin to speculate about what a brain was and what thought was and whether things that weren't alive could think and whether a brain was just a more complicated version of Hex (or, around 4 a.m., when bits of the clockwork reversed direction suddenly and the mice squeaked, a less complicated version of Hex) and wonder if the whole produced something not apparently inherent in the parts.

In short, Ponder was just a little bit worried.

He sat down at the keyboard. It was almost as big as the rest of Hex, to allow for the necessary levers and armatures. The various keys allowed little boards with holes in them to drop briefly into slots, forcing the ants into new paths.

It took him some time to compose the problem, but at last he braced one foot on the structure and tugged on the Enter lever.

The ants scurried on new paths. The clockwork started to move. A small mechanism which Ponder would be prepared to swear had not been there yesterday, but which looked like a device for measuring wind speed, began to spin.

After several minutes a number of blocks with occult symbols on them dropped into the output hopper.

'Thank you,' said Ponder, and then felt extremely silly for saying so.

There was a tension to the thing, a feeling of nute straining and striving towards some distant and incomprehensible goal. As a wizard, it was something that Ponder had only before encountered in acorns: a tiny soundless voice which said, yes, I am but a small, green, simple object - but I dream about forests.

Only the other day Adrian Turnipseed had typed in 'Why?' to see what happened. Some of the students had forecast that Hex would go mad trying to work it out; Ponder had expected Hex to produce the message ?????, which it did with depressing frequency.

Instead, after some unusual activity among the ants, it had laboriously produced: 'Because.'

With everyone else watching from behind a hastily overturned desk, Turnipseed had volunteered: 'Why anything?'

The reply had finally turned up: 'Because Everything. ????? Eternal Domain Error. +++++ Redo From Start +++++.'

No-one knew who Redo From Start was, or why he was sending messages. But there were no more funny questions. No-one wanted to risk getting answers. It was shortly afterwards that the thing like a broken umbrella with herrings on it appeared just behind the thing like a beachball that went 'parp' every fourteen minutes.

Of course, books of magic developed a certain... personality, derived from all that power in their pages. That's why it was unwise to go into the Library without a stick. And now Ponder had helped build an engine for studying magic. Wizards had always known that the act of observation changed the thing that was observed, and sometimes forgot that it also changed the observer too.

He was beginning to suspect that Hex was redesigning itself.

And he'd just said 'Thank you'. To a thing that looked like it had been made by a glassblower with hiccups.

He looked at the spell it had produced, hastily wrote it down and hurried out.

Hex clicked to itself in the now empty room. The thing that went 'parp' went parp. The Unreal Time Clock ticked sideways.

There was a rattle in the output slot.

'Don't mention it. ++?????++ Out of Cheese Error. Redo From Start.'

It was five minutes later.

'Fascinatin',' said Ridcully. 'Sapient pearwood, eh?' He knelt down in an effort to see underneath.

The Luggage backed away. It was used to terror, horror, fear and panic. It had seldom encountered interest before.

The Archchancellor stood up and brushed himself off.

'Ah,' he said, as a dwarfish figure approached. 'Here's the gardener with the stepladder. The Dean's in the chandelier, Modo.'

'I'm quite happy up here, I assure you,' said a voice from the ceiling regions. 'Perhaps someone would be kind enough to pass me up my tea?'

'And I was amazed the Senior Wrangler could ever fit in the sideboard,' said Ridcully. 'It's amazin' how a man can fold himself up.'

'I was just - just inspecting the silverware,' said a voice from the depths of a drawer.

The Luggage opened its lid. Several wizards jumped back hurriedly.

Ridcully examined the shark teeth stuck here and there in the woodwork.

'Kills sharks, you say?' he said.

'Oh, yes,' said Rincewind. 'Sometimes it drags them ashore and jumps up and down on them.'

Ridcully was impressed. Sapient pearwood was very rare in the countries between the Ramtops and the Circle Sea. There were probably no living trees left. A few wizards were lucky enough to have inherited staffs made out of it.

Economy of emotion was one of Ridcully's strong points. He had been impressed. He had been fascnated. He'd even, when the thing had landed in the middle of the wizards and caused the Dean's remarkable feat of vertical acceleration, been slightly aghast. But he hadn't been frightened, because he didn't have the imagination.

'My goodness,' said a wizard.

The Archchancellor looked up.

'Yes, Bursar?'

'It's this book the Dean loaned me, Mustrum. It's about apes.'