Please turn on JavaScript. Media requires JavaScript to play.

Pupils from a school in Hampshire were delighted when Dr Who star Matt Smith dropped in for a surprise visit.

Oakley Junior School in Basingstoke won a scriptwriting competition set up by the producers of the series.

On Friday the pupils were in assembly expecting to see a sneak preview of the three-minute episode, to be aired on 1 October on BBC Three.

But they had no idea that the Time Lord himself would also make an appearance.

One youngsters said afterwards: "It's amazing, I'll never forget this."