Who directed the film where the actor who played Gandalf played Cogsworth?