Q discovers how to restore The HAL 9000 to normal function