What is the function of the vas deferens?