Giving him a task and putting him to the side might make him feel dismissed. I'd instead recommending using the time as an opportunity to practice teaching, and some basic pair programming. By all means, walk him through whatever tedious code you are writing. To you it is tedious, to him it is something completely new and exactly what he wants to see - what do you really do all day? If he hates it, he will choose another path, if he loves it, he'll follow up more on this path. Either way, the purpose is not for you to entertain, but to demonstrate.