First she gave the Duke of Turing a decent burial. Then she studied his 
books until she had mastered them. She acquainted herself with the states by 
which the soldiers, and the mechanical Duke, could be programmed. She entered a 
new master program into the Duke and then restarted the turning of the mighty 
Shaft that powered the castle. Her first efforts were unsuccessful, as her 
program contained many errors. The original Duke himself had not been above 
this; he called them bugs, in reference to a large beetle that had become 
entangled in one of his chains during an early experiment and brought the first 
Turing machine to a violent halt. But with steadfast patience, Princess Nell 
resolved these bugs and made the mechanical Duke into her devoted servant. The 
Duke in turn had the knack of putting simple programs into all of the soldiers, 
so that an order given him by Nell was rapidly disseminated into the entire 
force.