What is the function of the ovaries of the worm?

to relase eggs